package dao;

import java.util.List;


import org.hibernate.HibernateException;


public class UsuarioDao extends GenericDao {

	public List listar() {
		List lista = null;
		try {
			session = HibernateUtil.getSessionFactory().openSession();
			lista = session.createQuery("select u from Usuario u").list();
		} catch (HibernateException e) {
			e.printStackTrace();
		} finally {
			session.close();
			
		}
		return lista;
	}

}
